package com.lin.maker.template.model;

import com.lin.maker.meta.Meta;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
public class TemplateMakerModelConfig {

    private List<TemplateMakerModelConfig.ModelInfoConfig> models;

    private TemplateMakerModelConfig.ModelGroupConfig modelGroupConfig;

    @Data
    @NoArgsConstructor
    public static class ModelInfoConfig{

        private String fieldName;
        
        private String type;
        
        private String description;
        
        private Object defaultValue;
        
        private String abbr;

        /**
         * 字段替换词
         */
        private String replaceText;
    }
    @Data
    public static class ModelGroupConfig{

        /**
         * 文件分组组名
         */
        private String groupName;
        /**
         * 文件分组得Key
         */
        private String groupKey;
        /**
         * 文件分组条件
         */
        private String groupCondition;

        /**
         * 模型类型
         */
        private String type;

        /**
         * 模型描述
         */
        private String description;

    }
    
}
